package com.cls.business.mapper;

import com.cls.business.entity.EntrustTopic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  Mapper
 *
 * @author slx
 * @date 2020-12-10 17:17:35
 */
@Repository
public interface EntrustTopicMapper extends BaseMapper<EntrustTopic> {

    @Select("SELECT * FROM biz_entrust_topic WHERE plan_id=#{planId} and is_delete=0 ")
    List<EntrustTopic> selectByPlanId(@Param("planId") Long planId);
}
